From f11a2b0be7a3f72cb842ae55f2ed06c6003d5d6b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Fabian=20Gr=C3=BCnbichler?= Date: Sat, 30 Nov 2024 12:24:03 +0100 Subject: [PATCH] blake3: skip embedded C code, use pure implementation MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Forwarded: not-needed Signed-off-by: Fabian Grünbichler Gbp-Pq: Topic vendor Gbp-Pq: Name blake3-skip-embedded-C-code-use-pure-implementation.patch --- vendor/blake3-1.8.2/Cargo.toml | 2 +- vendor/blake3-1.8.2/build.rs | 12 +++++++----- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/vendor/blake3-1.8.2/Cargo.toml b/vendor/blake3-1.8.2/Cargo.toml index a57d4598a6..ac0895ee8d 100644 --- a/vendor/blake3-1.8.2/Cargo.toml +++ b/vendor/blake3-1.8.2/Cargo.toml @@ -38,7 +38,7 @@ features = [ ] [features] -default = ["std"] +default = ["std", "pure"] digest = ["dep:digest"] mmap = [ "std", diff --git a/vendor/blake3-1.8.2/build.rs b/vendor/blake3-1.8.2/build.rs index 01b692fd7b..f38e0c230c 100644 --- a/vendor/blake3-1.8.2/build.rs +++ b/vendor/blake3-1.8.2/build.rs @@ -369,11 +369,13 @@ fn main() -> Result<(), Box> { println!("cargo:rerun-if-env-changed=CFLAGS"); // Ditto for source files, though these shouldn't change as often. - for file in std::fs::read_dir("c")? { - println!( - "cargo:rerun-if-changed={}", - file?.path().to_str().expect("utf-8") - ); + if !is_pure() { + for file in std::fs::read_dir("c")? { + println!( + "cargo:rerun-if-changed={}", + file?.path().to_str().expect("utf-8") + ); + } } // When compiling with clang-cl for windows, it adds .asm files to the root -- 2.30.2